export default (state = {}, action) => {
    switch(action.type) {
        case 'OPEN_PAGE':
            return Object.assign({}, state, action.data);    
        case 'CHANGE_PAGE_STATE':
            return Object.assign({}, state, action.data);    
        default:
            return state;
    }
}